//
//  GQIconCell.m
//  GuQu
//
//  Created by HELIUM STAR on 15/5/6.
//  Copyright (c) 2015年 HELIUM STAR. All rights reserved.
//

#import "GQIconCell.h"

@interface GQIconCell ()


@end

@implementation GQIconCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
    }
    return self;
}

- (void)setUpChildView
{
    CGFloat imageHeight = 40;
    CGFloat rightMargin = 70;
    
    
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(kScreenWidth - rightMargin, 60 / 2 - imageHeight / 2, imageHeight, imageHeight)];
    imageView.image = self.image;
    [self addSubview:imageView];
    
}

- (void)setImage:(UIImage *)image
{
    _image = image;
    [self setUpChildView];
}

@end
